// 详情用法请参考：https://www.uviewui.com/js/http.html
const http = uni.$u.http

// 登录
export const wechatLogin = params => http.post('/login/wechatLogin', params)

// 获取微信信息
export const wechatUserInfo = params => http.post('/login/wechatUserInfo', params)

// 获取用户信息
export const getInfo = params => http.get('/getInfo', params)

// 模考列表
export const sjxqList = params => http.get(`/gk/sjxq/list/${params}`)

// 模考详情
export const sjxqDetail = id => http.get(`/gk/sjxq/${id}`)

// 新增模考
export const sjxqAdd = params => http.post('/gk/sjxq', params)

// 修改模考
export const sjxqEdit = params => http.put('/gk/sjxq', params)

// 删除模考
export const sjxqDelete = id => http.delete(`/gk/sjxq/${id}`)

// 岗位查询
export const gwbList = params => http.get(`/gk/gwb/list/${params}`)

// 文章列表
export const articleList = params => http.get(`/gk/article/list/${params}`)

// 文章详情
export const articleDetail = id => http.get(`/gk/article/${id}`)

// 大神经验轮播
export const articleSlider = params => http.get('/gk/article/list/slider', params)

// 首页打卡列表
export const indexMarkList = params => http.get(`/gk/mark/allDayList/${params}`)

// 首页本周模考
export const indexWeeklist = params => http.get(`/gk/sjxq/weeklist/${params}`)

// 打卡列表
export const markList = params => http.get(`/gk/mark/list/${params}`)

// 新增打卡
export const markAdd = params => http.post('/gk/mark', params)

// 查看打卡
export const markDetail = id => http.get(`/gk/mark/${id}`)

// 修改打卡
export const markEdit = params => http.put('/gk/mark', params)

// 删除打卡
export const markDelete = id => http.delete(`/gk/mark/${id}`)

// 督学列表
export const duxueList = params => http.get(`/gk/duxue/list/${params}`)

// 督学查看
export const duxueDetail = id => http.get(`/gk/duxue/${id}`)

// 内容检测
export const msgSecCheck = params => http.post('/api/weChat/msgSecCheck', params)

// 保存用户信息
export const saveUserInfo = params => http.put('/system/user/profile', params)

// 用户积分信息
export const userIntegralInfo = params => http.get(`/system/integral/list/${params}`)

// 讲师列表
export const teacherList = params => http.get(`/gk/teacher/list/${params}`)

// 新增讲师评分
export const evaluationAdd = params => http.post('/gk/evaluation', params)

// 修改讲师评分
export const evaluationEdit = params => http.put('/gk/evaluation', params)

// 删除讲师评分
export const evaluationDelete = id => http.delete(`/gk/evaluation/${id}`)

// 检查能否评分
export const evaluationCheck = params => http.post('/gk/evaluation/evaluationCheck', params)

//讲师评价列表
export const evaluationList = params => http.get(`/gk/evaluation/list/${params}`)

// 添加经验
export const addExperience = params => http.post('/experience/add', params)

// 上传文件
export const uploadFile = params => http.post('/common/upload', params)

// 更新用户积分
export const updateIntegral = params => http.post('/system/user/updateIntegral', params)

//留言板列表
export const messageBoardList = params => http.get(`/gk/board/list/${params}`)

// 添加留言
export const addMessageBoard = params => http.post('/gk/board', params)


